You can use photo organization software and manually tag all of your photos.
That will allow you to search by the tags you enter.
But what if you forget to tag photos, or have too many to even attempt it?